package behavior.observer.test;

import behavior.observer.Observer;

/**
 * 持有彩票的人
 *
 * @author ykr
 * @date 2022/3/31
 */
public class LotteryHolders implements Observer {

	private String lottery;

	LotteryHolders(String lottery) {
		this.lottery = lottery;
	}

	@Override
	public void update(String msg) {
		//开奖
		System.out.println("本期开奖号码：" + msg + ",我的号码:" + lottery);
	}
}
